<template>
  <view class="component-container">
    <single :message="arrarticle"></single>
  </view>
</template>

<script>
		import single from "@/components/single.vue"
	import { alluserarticle } from '@/request/setarticle.js'
export default {
  name: 'MyTemplateComponent',
  components:{
	  single
  },
  data() {
    return {
      // 在这里添加数据
      message: 'Hello from UniApp!',
	  arrarticle:[]
    };
  },
  computed: {
    // 计算属性
    reversedMessage() {
      return this.message.split('').reverse().join('');
    }
  },
  mounted() {
    this.getallarticle()
  },
  methods: {
	  getallarticle(){
		  alluserarticle().then((e)=>{
			this.arrarticle=e.data.article
		  })
	  },
    handleClick() {
      // 处理点击事件
      console.log('Button clicked!');
    }
  }
};
</script>

<style scoped>
/* 在这里添加样式 */
</style>